package main.java.design.bridge;

/**
 * <p>
 *     桥接模式
 * </p>
 *
 * @author : wangdejian
 * @version 1.0
 * @date : 2020/6/14 18:42
 */
public class Client {

    public static void main(String[] args) {
        Brand iPhoneBrand = new IPhoneBrand();
        iPhoneBrand.setColor(new BlackColor());
        iPhoneBrand.phoneBrand();

        Brand miPhoneBrand = new MiPhoneBrand();
        miPhoneBrand.setColor(new RedColor());
        miPhoneBrand.phoneBrand();
    }
}
